<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex</title>
    <style>
        .box {
            display: flex;
            width: 500px;
            height: 400px;
            background-color: orange;
            /* 1. justify-content: 决定flex items 主轴的对齐方式 */
            /* justify-content: flex-start; */
            /* justify-content: flex-end;*/
            /* justify-content: center; */
            /* justify-content: space-between; */
            /* justify-content: space-evenly; */
            /* justify-content: space-around;  */


            /* 2. align-items：决定flex items 在交叉轴的对齐方式 */
            /* align-items: normal; */
            /* align-items: flex-start; */
            align-items: flex-end;
            /* align-items: baseline; */
            /* align-items: stretch; */
        }

        .item {
            width: 100px;
            height: 100px;
            color: #fff;
            text-align: center;
            line-height: 100px;
        }

        .item1 {
            height: 100px;
            background-color: #f00;
        }

        .item2 {
            height: 60px;
            background-color: #0f0;
        }

        .item3 {
            height: 120px;
            background-color: #00f;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="item item1">左</div>
        <div class="item item2">中</div>
        <div class="item item3">右</div>
    </div>
</body>

</html>